TEX capacity exceeded

Such an error message will be accompanied by additional text describing which parameter has been exceeded. Before doing anything else, first check for some common errors. If the exceeded parameter is stack_size then make sure you haven't defined an infinitely recursive macro. Look at the list of TEX parameters in your configuration file and check if the exceeded parameter appears there; if it is listed then you might be able to solve the problem by simply increasing the parameter's value and reloading the configuration file. Note that if you change the value of mem_top, hash_size, hash_prime or hyph_size then you will also need to rebuild all format files (see section [*]).